home *** CD-ROM | disk | FTP | other *** search
- public class PointSound extends Codex {
- private String _soundName;
- private float _minDist;
- private float _maxDist;
- private int _volume;
- private int _pan;
- private int _flags;
- public static String[] _params = new String[]{"Sound name", "Min Distance;300", "MaxDistance;600", "Volume;75", "Pan;0", "Flags;0"};
-
- public PointSound(String soundName, float minDist, float maxDist, int volume, int pan, int flags) {
- this._soundName = soundName;
- this._minDist = minDist;
- this._maxDist = maxDist;
- this._volume = volume;
- this._pan = pan;
- this._flags = flags;
- }
-
- public void beginscene(int clientGuid, int captureID) {
- new CodexSound(this._soundName, this._minDist, this._maxDist, this._volume, this._pan, this._flags, ((Codex)this).GetClassThing());
- }
- }
-